package canvas;

/**
* Created by IntelliJ IDEA.
* User: ilya
* Date: 01.12.2010
* Time: 18:06:02
*/
public class Rectangle implements Figure {

    private int a;
    private int b;

    public Rectangle(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public void draw(Canvas c) {
        c.drawLine(0, 0, a, 0);
        c.drawLine(a, 0, a, b);
        c.drawLine(a, b, 0, b);
        c.drawLine(0, b, 0, 0);
    }

}
